package cn.qayy.po;

import java.io.Serializable;

/**
 * 实体java bean 通过映射文件UserMapper.xml映射关系
 * 登陆系统的用户
 * @author jobs1127
 * 实体属性建议一定与数据库表的字段一样的对应
 */
public class User implements Serializable {
    private static final long serialVersionUID = 2663402041283780754L;
    //id主键
    private Integer id;
    //登陆用户名
    private String user_name="";
    //登陆密码
    private String password="";
    //默认为0,1是具有一定权限的用户，该字段暂时用于做权限判断
    private Integer age=0;
    
    //级别控制，用于下载流向的权限
    private Integer lev=0;
    
    private String hobby="";

    public static long getSerialVersionUID() {
        return User.serialVersionUID;
    }

    public Integer getId() {
        return this.id;
    }

    public Integer getLev() {
		return lev;
	}

	public void setLev(Integer lev) {
		this.lev = lev;
	}

	public void setId(Integer id) {
        this.id = id;
    }

    public String getUser_name() {
        return this.user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return this.age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public User() {

    }

	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", user_name=" + user_name + ", password=" + password + ", age=" + age + "]";
	}
    
    
}